<?PHP $this->_extends('_layouts/manager_layout');?>
<?PHP $this->_block('contents');?>
<style>
.tree ul{}
.tree li{padding:1px 20px; width:200px}
</style>
<h2 class="aa1">货币 编辑  <?=$currency->title?> </h2>
<form action="" method="post" >
<div>
	<span>名:</span> <input type="text" name="title" value="<?=$currency->title?>"  size="40" /> <br />
	<?php /* if($currency->id):?>
	<span>状态 :</span> 
		<?php if($currency->status&1):?>
		 	正在使用,  <a href="<?=url('/currencystatusmodify',array('id'=>$currency['id'],'status'=>'0'))?>" style="margin-left:20px" onclick="return confirm('确定停用吗')">Stop</a>
		 <?php else:?>
			未使用, <a href="<?=url('/currencystatusmodify',array('id'=>$currency['id'],'status'=>'1'))?>" style="margin-left:20px" onclick="return confirm('确定启用吗')">Install</a>
		<?php endif;?>
	<?php endif;  */?>
</div>
<?php if(isset($error)):?>
<div>
<?php foreach($error as $e=>$v){ switch($e){
		case 'primary_value': echo ' 要设为主要货币, 汇率  必须 为 1. ';
	 } }?>
</div>
<?php endif;?>
<table id='config'>
	<tr>
		<th> 货币 </th>
		<th width="120"> <?=$currency->code?> </th>
	</tr>
	</tr>
		<th width="100"> 率 </th>
		<th width="150"> <input type="text" name="value" value="<?=$currency->value?>" /> </th>
		<td>相对 主要货币 的</td>
	</tr>
	<tr>
		<th>设为主要</th>
		<td>
		<?php if(isset($primary)&&$primary==$currency->code):?>
			(已经设为主要 )
		<?php else:?>
			<input type="checkbox" name="primary" value="1"/>
		<?php endif;?>
		</td>
	</tr>
</table>

<input type="submit" value="   确定   "  />  
<a href="<?=url('/currencies')?>" >返回  List</a>

<input type="hidden" value="<?=$currency->id?>" name="id" />
</form>
<br style="clear:both">
<?PHP $this->_endblock();?>

